<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/4/6
  Time: 16:29
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
    <%
        int num = (int) session.getAttribute("num");
        if (num == 1){
                %>
                <div>
                    <form action="insert.jsp">
                        id:<input type="text" name="newsid" value=""><br/>
                        name:<input type="text" name="newsname" value=""><br/>

                        <input type="submit" value="添加">
                    </form>
                </div>
        <%
        }else if (num == 2){
                %>
                <div>
                    <form action="insert.jsp">
                        userid:<input type="text" name="userid" value=""><br/>
                        userName:<input type="text" name="username" value=""><br/>
                        password:<input type="text" name="password" value=""><br/>
                        email:<input type="text" name="email" value=""><br/>
                        userType:<input type="text" name="type" value=""><br/>
                        <input type="submit" value="添加">
                    </form>
                </div>
        <%
                }
            %>

</body>
</html>
